[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
_lrotl() Rotate a Long Value to the Left
#include <stdlib.h>
unsigned long _lrotl(value,count);
unsigned long value;
int count;
_lrotl() rotates an unsigned long 'value' to the left by 'count'
bits.
Returns: The rotated value.
-------------------------------- Example ---------------------------------
The following statements rotate 'val' by 'count' bits.
#include <stdlib.h>
main()
{
unsigned long val = 0xFFFF;
int count = 1;
printf("rotate %08lX %d bit(s) = %08lX \n",
val,count,_lrotl(val,count));
}
See Also:
_lrotr()
_rotr()
_rotl()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson